package com.ww.design.pattern.strategy;

public class ClientTest01 {

    public static void main(String[] args) {
        MovieTicket movieTicket = new MovieTicket();
        double originalPrice = 60;
        double currentPrice;
        
        movieTicket.setPrice(originalPrice);
        System.out.println("原始价为：" + originalPrice);
        System.out.println("---------------------------");
        
        movieTicket.setType("student");
        currentPrice = movieTicket.getPrice();
        
        System.out.println("折后价为：" + currentPrice);
        System.out.println("---------------------------");
        
        movieTicket.setType("children");
        currentPrice = movieTicket.getPrice();
        System.out.println("折后价为：" + currentPrice);
    }
}
